package com.tianhui.consignortwofei.pattern.orderOprate.impl;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.constant.OrderType;
import com.tianhui.consignortwofei.mvp.model.enty.OrderOperateInfo;
import com.tianhui.consignortwofei.mvp.ui.activity.OrderAdjustActivity;
import com.tianhui.consignortwofei.pattern.orderOprate.IOrderOperate;

/**
 * @author fgs
 * @date 2020/9/1
 * @description 调整价格
 **/
public class AdjustPriceOperate implements IOrderOperate {

    @Override
    public void orderOperate(Context context, OrderOperateInfo operateInfo) {

        Bundle bundle = new Bundle();
        bundle.putParcelable(KeyValue.KEY_ORDER_INFO, operateInfo.orderInfo);
        bundle.putInt(KeyValue.KEY_TYPE, OrderType.TYPE_ADJUST_PRICE);
        Intent intent = new Intent(context, OrderAdjustActivity.class);
        intent.putExtras(bundle);
        context.startActivity(intent);


    }

//    @Override
//    public void orderOperate(Context context, OrderOperateInfo operateInfo, OrderOperateCallback orderOperateCallback) {
//
//    }
}
